package com.th.admin.actuator.health;

/**
 * @author ThreePure
 * @date 2022/4/23 20:29
 * @description: TODO
 * @since 1.8
 */
//@Component
/*public class MyHeHealthIndicator implements HealthIndicator {
    @Override
    public Health health() {
        int errorCode = check(); // perform some specific health check
        if (errorCode != 0) {
            return Health.down().withDetail("Error Code", errorCode).build();
        }
        return Health.up().build();
    }

    //构建Health
    Health build = Health.down()
            .withDetail("msg", "error service")
            .withDetail("code", "500")
            .withException(new RuntimeException())
            .build();
}*/
